import http from '../utils/http'

export const reqLogin = (code) => {
  // code是临时登录凭证
  //进行登陆操作
  return http.get(`/weixin/wxLogin/${code}`)
}

export const reqUserInfo = () => {
  //获取用户消息
  return http.get('/weixin/getuserInfo')
}

//封装用户文件上传接口更新
//filePath文件路径 name
export const reqUploadFile = (filePath, name) => {
  return http.upload('/fileUpload', filePath, name)
}

//更新用户信息
export const reqUpdateUserInfo = (userinfo) => {
  return http.post('/weixin/updateUser', userinfo)
}
